package com.cs.deviceManager.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 位置变更对象 dev_location_history
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DevLocationHistory extends BaseEntity
{

    /** 记录ID */
    private Long id;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long devId;

    /** 原位置 */
    @Excel(name = "原位置")
    private String oldLocation;

    /** 原纬度 */
    @Excel(name = "原纬度")
    private BigDecimal oldLatitude;

    /** 原经度 */
    @Excel(name = "原经度")
    private BigDecimal oldLongitude;

    /** 新位置 */
    @Excel(name = "新位置")
    private String newLocation;

    /** 新纬度 */
    @Excel(name = "新纬度")
    private BigDecimal newLatitude;

    /** 新经度 */
    @Excel(name = "新经度")
    private BigDecimal newLongitude;

    /** 变更时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "变更时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeTime;

}
